On 29/03/20 07:06, Gerben Wierda wrote:
I’m trying in METAPOST to build a command to pass on to ConTeXt using
btex/etex.
picture p; p := scantokens( "btex " & texcommands & " etex”);
btex/etex is better replaced by textext().
Nevertheless, this does not change anyth
I’m trying in METAPOST to build a command to pass on to ConTeXt using btex/etex.
picture p; p := scantokens( "btex " & texcommands & " etex”);
with texcommands a variable that holds a string of TeX commands doesn’t work.
The METAPOST parser complains about not finding e
On 7/17/2018 3:40 PM, Procházka Lukáš Ing. wrote:
Hello,
I encountered a weird thing - words of 1 letter inside btex ... etex
within MP are not shown - check:
\setuplayout[page]
\startluacode
context.setMPtext("Pare", "1")
context.setMPtext("Pare2&quo
Hello,
I encountered a weird thing - words of 1 letter inside btex ... etex within MP
are not shown - check:
\setuplayout[page]
\startluacode
context.setMPtext("Pare", "1")
context.setMPtext("Pare2", "22")
context.setMPtext("Pare3"
On Mon, Dec 12, 2011 at 01:02, Mojca Miklavec wrote:
... however I still have some problems. For some reason ConTeXt only
generates dvi files from metapost code which has never been the case
before. I need to figure out what is going on.
Ouch.
mtxrun mptopdf gptest-gnuplot-2-mp.mp
MPtoPDF
no idea how to go about doing
it via this approach. It could be made to work from the other
direction (by writing lua code to intercept tex nodes) but that is
not trivial either.
I see.
You could use standalone metapost with btex ... etex, that would work.
OK. But then I would lose e.g
you want now, but I have no idea how to go about doing
it via this approach. It could be made to work from the other
direction (by writing lua code to intercept tex nodes) but that is
not trivial either.
I see.
You could use standalone metapost with btex ... etex, that would work.
OK
Now onto step two: how can I typeset each glyph in the formula individually
such that it appears precisely in the right location?
I must be misreading something here, but I cannot figure out what
'the right location' means.
Since textext() always returns a single picture that can't be
glyph.
I know what you want now, but I have no idea how to go about doing
it via this approach. It could be made to work from the other
direction (by writing lua code to intercept tex nodes) but that is
not trivial either.
You could use standalone metapost with btex ... etex, that would work
so, if in mkiv you want pieces, you need to textext each snippet that you
want as such
Alright... in that case how would I make sure that all glyph positions are
kept if my TeX material is, say, some complex formula? How could I find the
baseline with textext?
see mp.mplib for all
On 08/21/2010 04:24 PM, Oliver Buerschaper wrote:
Now onto step two: how can I typeset each glyph in the formula individually
such that it appears precisely in the right location?
I must be misreading something here, but I cannot figure out what
'the right location' means.
Best wishes,
Taco
the fact that you have pieces in mkii is a side effect of dvitomp turning dvi
output in mp pictures; in the process it combines glyphs that have no kerning
and whatever spacing becomes shifts
Oh, I didn't know the pieces used to come about by accident... actually, by a
rather favourable
On Wed, Aug 18, 2010 at 02:20:51PM +0200, Oliver Buerschaper wrote:
the fact that you have pieces in mkii is a side effect of dvitomp turning
dvi output in mp pictures; in the process it combines glyphs that have no
kerning and whatever spacing becomes shifts
Oh, I didn't know the
I always develop a kind of romantic relationship with the tools I use, I
either hate it and stop using it no matter what it can or can not do; I
hate OpenOffice and Qt, for example, and I would never, willingly use
either. On the other hand, when I love some tool I never turn my back to
it,
On 18-8-2010 2:20, Oliver Buerschaper wrote:
the fact that you have pieces in mkii is a side effect of dvitomp turning dvi
output in mp pictures; in the process it combines glyphs that have no kerning
and whatever spacing becomes shifts
Oh, I didn't know the pieces used to come about by
Hi,
I've been trying to troubleshoot a problem with TeX labels I ran into the other
day... finally I discovered that
1. MkIV (textext) includes TeX material as one single chunk apparently while
MkII (btex ... etex) used to include a decomposable picture and that
2. the anchor point
On 17-8-2010 4:32, Oliver Buerschaper wrote:
Hi,
I've been trying to troubleshoot a problem with TeX labels I ran into the other
day... finally I discovered that
1. MkIV (textext) includes TeX material as one single chunk apparently while
MkII (btex ... etex) used to include a decomposable
I found that the following example
\starttext
\startuseMPgraphic{test}
draw btex some text with space etex;
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext
can generate the text between btex and etex correct no matter I use
MKII or MKIV.
But, when I running the following example
beginfig(0
--context=current first-setup.log
source ./tex/setuptex
I get this message on ETEX in the call to first-setup.sh.
...hans/TeX/context/stable/tex/texmf-osx-ppc/bin/mtxrun:8707: attempt to
concate
nate a nil value
(/Users/hans/TeX/context/stable/tex/texmf-context/tex/context/base/cont-en.tex
(
/Users
this message on ETEX in the call to first-setup.sh.
...hans/TeX/context/stable/tex/texmf-osx-ppc/bin/mtxrun:8707: attempt
to concate
nate a nil value
(/Users/hans/TeX/context/stable/tex/texmf-context/tex/context/base/
cont-en.tex (
/Users/hans/TeX/context/stable/tex/texmf-context/tex/context/base
$a$ etex, .5[z0,z1]);,
label.lft(btex $b$ etex, .5[z0,z2]);,
endfig;})
\stoplua
\stopTEXpage
\stoptext
there are no labels, but I believe that it's wrong.
The MPlib library embedded in luatex does not actually
support btex .. etex blocks.
It is planned to intercept such blocks in the mkiv
(q0.5, p2, q1.5, p4);
fill pp withcolor .8white;
z0=center pp;
picture lab; lab=thelabel(btex $f0$ etex, z0);
unfill bbox lab; draw lab;
draw q0.5; draw p2; draw q1.5; draw p4;
makelabel.top(btex $P$ etex, p2 intersectionpoint q0.5);
makelabel.rt(btex $Q$ etex, p2 intersectionpoint q1.5);
%endfig
luigi scarso wrote:
In
\starttext
\startTEXpage
\startlua
metapost.process(metafun,{beginfig(1);,
a=.7in; b=0.5in;,
z0=(0,0); z1=(a,0); z2=(0,b);,
z0=.5[z1,z3]=.5[z2,z4];,
draw z1..z2..z3..z4..cycle;,
drawarrow z0..z1;,
drawarrow z0..z2;,
label.top(btex $a$ etex, .5[z0,z1
In
\starttext
\startTEXpage
\startlua
metapost.process(metafun,{beginfig(1);,
a=.7in; b=0.5in;,
z0=(0,0); z1=(a,0); z2=(0,b);,
z0=.5[z1,z3]=.5[z2,z4];,
draw z1..z2..z3..z4..cycle;,
drawarrow z0..z1;,
drawarrow z0..z2;,
label.top(btex $a$ etex, .5[z0,z1]);,
label.lft(btex $b$ etex, .5[z0,z2
btex.tex ===
\starttext
\startreusableMPgraphic{fig}
label(btex in b/e tex etex, origin);
\stopreusableMPgraphic
outside btex..etex\quad
\reuseMPgraphic{fig}
\stoptext
works here
Sanjoy Mahajan wrote:
Oh, wait, if metapost is fine with the file but ConTeXt isn't, then the
error above must be from ConTeXt parsing the metapost code and seeing
the \2, then complaining. So am I supposed to use the global option to
\startMPenvironment? If it's needed in this case, I think
Sanjoy Mahajan wrote:
Unless I'm doing something very silly, the following should and I am
almost certain did work, but it fails with the 2006.09.28 beta:
btex.tex ===
\starttext
\startreusableMPgraphic{fig}
label(btex in b/e tex etex, origin
Hans Hagen wrote:
btex.tex ===
\starttext
\startreusableMPgraphic{fig}
label(btex in b/e tex etex, origin);
\stopreusableMPgraphic
outside btex..etex\quad
\reuseMPgraphic{fig}
\stoptext
works here
Unless I'm doing something very silly, the following should and I am
almost certain did work, but it fails with the 2006.09.28 beta:
btex.tex ===
\starttext
\startreusableMPgraphic{fig}
label(btex in b/e tex etex, origin);
\stopreusableMPgraphic
outside btex
}
label(btex \2 etex, origin);
\stopreusableMPgraphic
\reuseMPgraphic{fig}
\stoptext
=
The error is (from 3.log):
== error snippet ===
systems : begin file 3 at line 1
color : currentcolor (def) is not defined
Hans bedankt!
Willi
Hans Hagen wrote:
Willi Egger wrote:
Hi Hans,
thanks for your immediate reply. Indeed it is strange that it runs ok
in your environment.
But where to put this altered definition?
cont-new.tex or so
(it runs ok because this btex/etex stuff is also parsed
Hi,
It seems that there is a problem with parsing betex - etex blocks in the
following situation:
I can not say with which version this has been introduced. (I messed up
my old TeX, so I have only new ones)
I tested this with the version of 19-12-2005 an 30-11-2005.
\setMPtext{1}{CENTER
Willi Egger wrote:
Hi,
It seems that there is a problem with parsing betex - etex blocks in
the following situation:
I can not say with which version this has been introduced. (I messed
up my old TeX, so I have only new ones)
I tested this with the version of 19-12-2005 an 30-11-2005
Hi Hans,
thanks for your immediate reply. Indeed it is strange that it runs ok in
your environment.
But where to put this altered definition?
Cheers
Willi
Hans Hagen wrote:
Willi Egger wrote:
Hi,
It seems that there is a problem with parsing betex - etex blocks in
the following
Willi Egger wrote:
Hi Hans,
thanks for your immediate reply. Indeed it is strange that it runs ok
in your environment.
But where to put this altered definition?
cont-new.tex or so
(it runs ok because this btex/etex stuff is also parsed and cleaned up
by texexec)
Hans
Hi,
Is anyone using tex i.e. not pdfetex/aleph/xetex? I'd likt to go etex
only which in the end is needed anyway since we run out of token list
registers (in etex more we're already past 255)
Hans
Hi Hans,
I only use aleph and pdfetex. I am concerned however, because aleph uses an
older version of etex, and so there may be unintended consequences
( bad for me-)
Giuseppe is busy, but maybe he has some initial thoughts on this?
Best
Idris
= Original Message From mailing list
Idris Samawi Hamid wrote:
Hi Hans,
I only use aleph and pdfetex. I am concerned however, because aleph uses an
older version of etex, and so there may be unintended consequences
( bad for me-)
don't worry, the things that i use are available in aleph; also, the
formerly broken register
On Mon, Apr 04, 2005 at 10:22:07AM +0200, Hans Hagen wrote:
Jiri Polcar wrote:
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
that's pretty old (we have 5+ now)
can you try a newer version?
OK. Now I using tetex-2.0.2-21.3 that comes with Fedora Core 3. I download
Jiri Polcar wrote:
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
that's pretty old (we have 5+ now)
can you try a newer version?
This is MetaPost, Version 0.641 (Web2C 7.4.5)
(mpgraph.mp )
Transcript written on mpgraph.log.
i suppose that the log is ok?
Hans
Hello Jiri,
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
with that ancient version you can try your luck with
\protectbufferstrue in cont-sys.tex (copy it from cont-sys.rme if it
doesn't exist yet).
Patrick
--
ConTeXt wiki: http://contextgarden.net
it original size.
My problem is that I have no output also without 'caled 5cm':
\setupoutput[pdftex]
\starttext
\startuseMPgraphic{test}
picture p; p := btex TEST etex;
draw p;
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext
Sorry, I used too complicated example
.
My problem is that I have no output also without 'caled 5cm':
\setupoutput[pdftex]
\starttext
\startuseMPgraphic{test}
picture p; p := btex TEST etex;
draw p;
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext
Sorry, I used too complicated example to describe
Hallo,
my ConTeXt ignore btex-etex command. It works as the btex-etex command
is empty. No text on output. Simple example:
\starttext
\startuseMPgraphic{test}
picture p; p := btex TEST etex scaled 5cm;
draw p;
\stopuseMPgraphic
\useMPgraphic{test
Hello Jiri,
\starttext
\startuseMPgraphic{test}
picture p; p := btex TEST etex scaled 5cm;
draw p;
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext
The file works fine here. Except that only some part of the T is
visible (large scale factor).
Do you
On Fri, Apr 01, 2005 at 11:24:37AM +0200, Patrick Gundlach wrote:
The file works fine here. Except that only some part of the T is
visible (large scale factor).
Do you have write18 enabled? (http://contextgarden.net/Texmf.cnf)
I set
shell_escape = t
in
(* Please excuse my poor english *)
Semicolon usage in btex ... etex seems weird to me. Can you help me ?
The following source don't produce the expected result :
% WRONG
\startuseMPgraphic{test}
dotlabel.top(btex 2;3 etex, (0,0)) ;
\stopuseMPgraphic
\starttext
... etex seems weird to me. Can you help me ?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
On Thu, 26 Aug 2004 22:07:23 +0200, Nikolai wrote:
Hi!
I remember reading somewhere that you can't use btex ... etex in input
.mp files, as there is no possibility for them to be processed at that
time.
That is somewhat incorrect information. You can not use btex ... etex in
a normal way
* Taco Hoekwater [EMAIL PROTECTED] [Aug 27, 2004 11:28]:
I remember reading somewhere that you can't use btex ... etex in
input .mp files, as there is no possibility for them to be
processed at that time.
That is somewhat incorrect information. You can not use btex ... etex
in a normal
On Fri, 27 Aug 2004 12:32:31 +0200, Nikolai wrote:
* Taco Hoekwater [EMAIL PROTECTED] [Aug 27, 2004 11:28]:
If you need run-time TeX labels, you can use the textext() macro from
metafun, or John Hobby's TEX() macro (available after input tex;)
Hm, I tried textext(). Can it be used in
() stuff or other generated
btex ... etex stuff, but no btex ... etex in the picture itself, the
extra run for the labels is not performed. This needs fixing and should
probably not be impossible to fix, but I guess it's yet another one of
my pushing the limits of ConTeXt/MetaPost-problems. I cannot
as well, will check.
Anyway, the real problem was that texexec doesn't run with --mptex when
it actually needs to. If there are textext() stuff or other generated
btex ... etex stuff, but no btex ... etex in the picture itself, the
extra run for the labels is not performed.
Perhaps
Hi!
I remember reading somewhere that you can't use btex ... etex in input
.mp files, as there is no possibility for them to be processed at that
time. I've hit a snag, though, and this would really be a good thing
for me to have. Is there any way to get similar behavior? Basically, I
want
Thursday, February 12, 2004 Hans Hagen wrote:
Hi,
A numexpr either ends with a \relax or is delimited by ()
So, the following works as expected:
\number\numexpr(1) test
but ... the following gives an error message:
\number\numexpr(1) /test
so, the expr parser looks beyond the )
At 12:59 14/02/2004, you wrote:
Observe that this is congruent with the TeX way of scanning for
assignments.
not entirely since the space is not seen as a delimiter
\count0=123 4
\count0=\numexpr(123) 4
So always put a \relax after an expression :)
yes, but i'm occasionally surpised when a
Saturday, February 14, 2004 Hans Hagen wrote:
So always put a \relax after an expression :)
yes, but i'm occasionally surpised when a \relax is pushed back in the list
(and for instance acrobat does not like /Whatever 12\relax
Well, that's not a \relax that comes from an \..expr command
for
are behaving a bit strange anyway)
Hans
PS. for those using etex primitives, recently i ran into a bug in
\lastnodetype (resulting in incorrect return values or funny side effects),
this is already corrected (by fabrice/olaf) in the yet to come versions
in no label output:
\starttext
\startMPcode
label.top(btex Some label etex, (1cm,1cm)) ;
\stopMPcode
\stoptext
I'm using ConTeXt 2003.12.12.
By the way, why don't \startMPgraphic and \stopMPgraphic do anything?
\setupoutput[pdftex]
\starttext
\section{Including the MPcode in the placefigure
garbage between Some and label, and
\startMPcode
label.top(btex Some label etex, (1cm,1cm)) ;
\stopMPcode
doesn't work at all.
Sorry for being that vague.
David
On 2003-12-14 07:01:34, Willi Egger wrote :
Hi David,
The use of the different possibilities of including metapost graphics
Hi David,
Sorry for being that vague.
You are still very vague. Your posted example works fine here. Please
report what ConTeXt/texexec version you have. You might think of
posting your logfile.
Do you have \protectbufferstrue in cont-sys.tex?
Patrick
--
mon trainsistor j'adore
Patrick Gundlach wrote :
Do you have \protectbufferstrue in cont-sys.tex?
That was the exact point. It fixed it. Thanks a lot!
David
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
what ConTeXt version do you have? It sounds like an older one.
texexec says:
ConTeXt ver: 2003.12.12 fmt: 2003.12.14 int: english mes: english
Freshly downloaded, but poorly installed by a novice... Actually I replaced
the ConTeXt part from the debian unstable package source. So teTeX and
63 matches
Mail list logo